package cn.com.cym.gamezao.enums;

import io.swagger.annotations.ApiModel;

@ApiModel("申请状态")
public enum ApplyStatus {
    CREATE("CREATE","创建"),
    APPLY("APPLY","申请"),
    AUDIT("AUDIT","通过"),
    REJECT("REJECT","驳回"),
    CANCEL("CANCEL","不通过");

    private String sign;

    private String value;

    private ApplyStatus(String sign,String value){
        this.sign=sign;
        this.value=value;
    }

    public String getSign(){
        return this.sign;
    }

    public String getValue(){
        return this.value;
    }

    public  static  ApplyStatus fromSign(String sign){
        for(ApplyStatus applyStatus:ApplyStatus.values()){
            if(applyStatus.getSign().equals(sign)){
                return applyStatus;
            }
        }
        return  null;
    }
}
